/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: BaseApplication
 * Author:   zhouheng
 * Date:     2019/3/29 14:24
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.onesquare;

import com.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author zhouheng
 * @create 2019/3/29
 * @since 1.0.0
 */

@SpringBootApplication
public class BaseApplication {

    public static void main(String[] args){
        SpringApplication.run(BaseApplication.class);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,1);
    }
}